package com.xxx.server.controller;


import com.xxx.server.pojo.Menu;
import com.xxx.server.service.IMenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  菜单
 * </p>
 *
 * @author cd
 * @since 2023-11-14
 */
@RestController
@RequestMapping("/system")
public class MenuController {

    @Resource
    private IMenuService iMenuService;

    @GetMapping("/cfg/menus")
    private List<Menu> getMenuByUserId(){
        List<Menu> menuList = iMenuService.getMenuByUserId();
        return  menuList;
    }

}
